Skip to content

Conversation

@saig0
Copy link
Member

@saig0 saig0 commented Sep 26, 2024

Description

Backport of #930 to 1.16.

relates to #883 #879

Align with version 1.17 and migrate the test class to the new test style. This refactoring eases the backporting of upcoming bug fixes.
(cherry picked from commit c8b01bd)
(cherry picked from commit 58efca9)
Correct the handling of escape sequences in string literals.

Don't replace escape sequences in regex expressions, for example, \r or \n. In the parser, these sequences start with \\. Same for \s, don't replace it with a whitespace, since this is also a part of a regex.

Handle \\ to avoid that the sequence is escaped and returned as \\\\.

(cherry picked from commit d266e80)
@saig0 saig0 requested a review from mboskamp September 26, 2024 04:22
@saig0
Copy link
Member Author

saig0 commented Sep 26, 2024

@mboskamp I had to create the backport PR manually. However, it contains the same changes as the original PR. Please have a short look. 🍪

Copy link
Contributor

@mboskamp mboskamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good!

@saig0 saig0 merged commit 2a0f4f5 into 1.16 Sep 26, 2024
4 checks passed
@saig0 saig0 deleted the 930-backport-1.16 branch September 26, 2024 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants